package com.adnaan.backend.service;

import com.adnaan.backend.entity.Medicinal;
import com.adnaan.backend.entity.dto.OptionDto;
import com.adnaan.backend.entity.dto.PictureListDto;
import com.adnaan.backend.entity.vo.EfficacyVo;
import com.adnaan.backend.entity.vo.PicturesVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface MedicinalService extends IService<Medicinal> {
    List<OptionDto> getEfficacy(Long id);

    boolean deleteEfficacy(Long id, Long efficacyId);

    void deleteAllEfficacy(Long materialId);

    boolean updateEfficacy(EfficacyVo efficacyVo);

    String getDefaultPicture(Long id);

    boolean addPictures(PicturesVo picturesVo);

    List<PictureListDto> pictures(Long materialId);

    boolean deletePicture(Long picId);
}
